﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TestFB.Code;
using System.Net;
using System.Text;

namespace TestFB
{
    public partial class LetsRock : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //string url = @"https://graph.facebook.com/oauth/access_token/?" + HttpUtility.UrlEncode("client_id=" + FacebookManager.ApplicationID + "&client_secret=" + FacebookManager.ApplicationSecret + "&code=" + Session["Code"] + "&redirect_uri=" + @"http://localhost:55130/LetsRock.aspx");
            //HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;

            ////request.Accept = "application/xrds+xml";  
            //HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            //WebHeaderCollection header = response.Headers;

            //var encoding = ASCIIEncoding.ASCII;
            //using (var reader = new System.IO.StreamReader(response.GetResponseStream(), encoding))
            //{
            //    string responseText = reader.ReadToEnd();
            //}
        }

        protected void btnObtenerAmigos_Click(object sender, EventArgs e)
        {
            
        }
    }
}